<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_id" data-rule="required" data-source="goods/index" class="form-control selectpage" name="row[goods_id]" type="text" value="{$row.goods_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shipping_contact')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shipping_contact" data-rule="required" class="form-control" name="row[shipping_contact]" type="text" value="{$row.shipping_contact|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shipping_phone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shipping_phone" data-rule="required" class="form-control" name="row[shipping_phone]" type="text" value="{$row.shipping_phone|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shipping_idcard')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shipping_idcard" data-rule="required" class="form-control" name="row[shipping_idcard]" type="text" value="{$row.shipping_idcard|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shipping_province')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shipping_province" data-rule="required" class="form-control" name="row[shipping_province]" type="text" value="{$row.shipping_province|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shipping_city')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class='control-relative'><input id="c-shipping_city" data-rule="required" class="form-control" data-toggle="city-picker" name="row[shipping_city]" type="text" value="{$row.shipping_city|htmlentities}"></div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shipping_area')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shipping_area" data-rule="required" class="form-control" name="row[shipping_area]" type="text" value="{$row.shipping_area|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shipping_address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shipping_address" data-rule="required" class="form-control" name="row[shipping_address]" type="text" value="{$row.shipping_address|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_callback')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-is_callback" class="form-control selectpicker" name="row[is_callback]">
                {foreach name="isCallbackList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.is_callback"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_id" data-rule="required" data-source="order/index" class="form-control selectpage" name="row[order_id]" type="text" value="{$row.order_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Phone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-phone" class="form-control" name="row[phone]" type="text" value="{$row.phone|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="orderStatusList" item="vo"}
            <label for="row[order_status]-{$key}"><input id="row[order_status]-{$key}" name="row[order_status]" type="radio" value="{$key}" {in name="key" value="$row.order_status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_status_text')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_status_text" class="form-control" name="row[order_status_text]" type="text" value="{$row.order_status_text|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rebate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rebate" class="form-control" step="0.01" name="row[rebate]" type="number" value="{$row.rebate|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Channel')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-channel" class="form-control" name="row[channel]" type="text" value="{$row.channel|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remark" class="form-control" name="row[remark]" type="text" value="{$row.remark|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shipping_company_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shipping_company_name" class="form-control" name="row[shipping_company_name]" type="text" value="{$row.shipping_company_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shipping_no')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shipping_no" class="form-control" name="row[shipping_no]" type="text" value="{$row.shipping_no|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_recharged')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-is_recharged" class="form-control selectpicker" name="row[is_recharged]">
                {foreach name="isRechargedList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.is_recharged"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Callback_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-callback_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[callback_time]" type="text" value="{:$row.callback_time?datetime($row.callback_time):''}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
